package com.tedu.bill.demo2;

/**
 * Author：毕龙
 * Date: 2024/4/21 10:47
 */
public class Student {
    static int a;//静态的变量 类变量
    private static int b = 110;
    static public int c = 120;
    public static int d = 119;//常用
    int e = 1234;//非静态成员变量

    public static void m1(){
        //Non-static method 'm3()' cannot be referenced from a static context
        //m3();
        //Non-static field 'e' cannot be referenced from a static context
        //System.out.println(e);
        System.out.println("m1静态方法执行");
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        m4();

    }

    public void m3(){
        System.out.println("非静态的m3方法执行");
    }

    public static void m4(){
        System.out.println("静态的m4方法执行");
    }


}
